package com.highveldsky.gwtdatabinding.client.service;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.highveldsky.gwtdatabinding.shared.model.Car;

public interface CarServiceAsync {

	void createCar(Car car, AsyncCallback<Long> callback);

	void deleteCar(Long id, AsyncCallback<Void> callback);

	void listCars(AsyncCallback<List<Car>> callback);

	void readCar(Long id, AsyncCallback<Car> callback);

	void updateCar(Car car, AsyncCallback<Void> callback);

}
